<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <script src="../js/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <my-component></my-component>
        </div>
        <script>
             var vm = new Vue({
                 el:'#app',
                 components : {
                     myComponent : {
                        template : '<p>我是vm实例中的局部组件</p>'
                     }
                 }
             })
        </script>
    </body>
</html>